package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcAttendanceMapper;
import com.csun.cmny.provider.model.domain.OmcAttendance;
import com.csun.cmny.provider.model.dto.AttendanceQueryDto;
import com.csun.cmny.provider.service.OmcAttendanceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
@Transactional
public class OmcAttendanceServiceImpl extends BaseService<OmcAttendance> implements OmcAttendanceService {
    @Resource
    private OmcAttendanceMapper attendanceMapper;

    @Override
    public List<OmcAttendance> selectAttendance(AttendanceQueryDto attendanceQueryDto) {
        return attendanceMapper.selectAttendance(attendanceQueryDto);
    }

    @Override
    public int saves(List<OmcAttendance> omcAttendances) {
        return attendanceMapper.saves(omcAttendances);
    }
}
